package com.unitd.sso;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @desc SSO支持SpringBoot的应用测试启动类
 * @filename SsoSpringBootApp.java
 * @copyright www.unitd.com
 * @author Hudan
 * @version 1.0
 * @date 2018/1/10
 */
@SpringBootApplication
public class SsoSpringBootApp {

	private static final Logger logger = LoggerFactory.getLogger(SsoSpringBootApp.class);

	/**
	 * * 1、启动执行
	 * 2、访问 http://localhost:8080/token 提示登录
	 * 3、登录 访问 http://localhost:8080/login 成功再去 2 步骤查看<
	 * 4、退出登录：http://localhost:8080/logout
	 * @param args
	 */
	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(SsoSpringBootApp.class);
		application.run(args);
		logger.info("sso server start!");
	}
}